home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / nameless.swf / scripts / DefineSprite_1115 / frame_1 / DoAction.as
Encoding:
Text File  |  2011-06-09  |  459 b   |  20 lines

  1. startW = _xscale;
  2. startH = _yscale;
  3. startA = _alpha;
  4. var onEnterFrame = function()
  5. {
  6.    this.setMask(_root.bound2);
  7.    _X = _root.cm._x;
  8.    _Y = _root.cm._y + 3;
  9.    _xscale = startW;
  10.    _yscale = startH;
  11.    _alpha = startA;
  12.    while(_Y < _root.cam._y + _root.cam._height / 2 + 50 && !_root.bound.hitTest(_X,_Y - 5,true))
  13.    {
  14.       _Y = _Y + 1;
  15.       _alpha = _alpha - 0.5;
  16.       _xscale = _xscale - 1;
  17.       _yscale = _yscale - 1;
  18.    }
  19. };
  20.